package com.bci.pwtz.task.thread;

import com.bci.pwtz.common.PwtzConstants;
import com.bci.pwtz.common.util.SpringUtil;
import com.bci.pwtz.service.CompanyUserService;

public class ClearInvationCodeThread extends BaseThread
{ 
    public ClearInvationCodeThread()
    {
        interval = PwtzConstants.CLEAR_INVITATION_CODE_INTERVAL * 60;
        threadName = "清理过期邀请码任务";
    }
    
    @Override
    public void doWork() throws Exception
    {
        CompanyUserService companyUserService = (CompanyUserService)SpringUtil.getBean("companyUserService");
        companyUserService.deleteExpireData();
    }
}
